package cn.zebra.dev.product.module.question.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author HH
 */
@TableName("product_question")
@Getter
@Setter
public class ProductQuestionEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品id")
    private Long productId;

    @ApiModelProperty(value = "商品问题内容")
    private String questionContent;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "用户id")
    private Long memberId;

    @ApiModelProperty(value = "用户名称")
    private String memberName;

    @ApiModelProperty(value = "用户头像")
    private String memberHeadImg;

    @ApiModelProperty(value = "是否删除")
    private Boolean deleteFlag;

    @ApiModelProperty(value = "问题提交时间")
    private LocalDateTime createTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "回复人数")
    private int replyCount;

    @ApiModelProperty(value = "商品问题回复内容list")
    @TableField(exist = false)
    private List<ProductQuestionReplyEntity> questionReplyContentList;
}
